package com.yshebkb.sulp.exception;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 *
 * @author yshebkb
 * @date 2018/9/3
 */
@Data
@AllArgsConstructor
public class AppException extends RuntimeException {
    private Integer errorCode;
    private String errorMsg;

    public AppException(ErrorCodes errorCodes) {
        this.errorCode = errorCodes.getErrorCode();
        this.errorMsg = errorCodes.getErrorMsg();
    }
}
